<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/com/busibuilding/common/taglibs.jsp"%>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0"
	marginheight="0">
	<s:form theme="simple" id="areaForm" namespace="/admin">
	<s:hidden name="areaForm.cityCd" value="%{areaForm.cityCd}"></s:hidden>
		<table width="100%" border="0" align="center">
			<tr>
				<td colspan="5">&nbsp;</td>
			</tr>
			<tr>
				<td style="padding-left: 10px; padding-right: 10px; vertical-align: top; width: 100%;" class="content">
				<table width="100%" border="0" cellpadding="0" cellspacing="0" >
					<tr>
						<td width="5%"></td>
						<td>
						<TABLE width="100%" class="wwFormTable"  border="0" cellpadding="5" cellspacing="5">
							<tr>
								<td colspan="5">&nbsp;</td>
							</tr>
							<tr>
								<td colspan="5" class="pageTitle" align="left">
									<table class="pageTitle">
										<tr>
											<td width="4%">&nbsp;
											</td>
											<td colspan="4" class="pageTitle">
												<font size="4" >
													<s:text name="admin.sysmgmt.area.label.pageTitle" />
												</font>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td colspan="5">&nbsp;</td>
							</tr>
							<tr>
								<td width="8%">&nbsp;</td>
								<td colspan="4" class="compulsory"></td>
							</tr>
							<tr>
								<td colspan="5">&nbsp;</td>
							</tr>
							<tr>
								<td colspan="5" align="left">
									<table>
										<tr>
											<td width="4%">&nbsp;
											</td>
											<td colspan="4" class="pageTitle">
												<span><s:actionerror /></span>
												<span><s:actionmessage/></span>
												<br><br>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							
							<tr>
								<td colspan="5">
									<table class="subTitle">
										<tr>
											<td width="4%" class="subTitle">&nbsp;
											</td>
											<td colspan="4" class="subTitle">
												<s:text name="admin.sysmgmt.area.label.searchCriteria" />											
											</td>
										</tr>
									</table> 
								</td>
							</tr>
							
							
							<tr>
								<td colspan="5">&nbsp;</td>
							</tr>
							<tr>
								<td width="8%">&nbsp;</td>
								<td align="left" class="label" width="15%">
									<s:text name="admin.sysmgmt.area.label.areaCode"/>:
								</td>
								<td align="left">
									<s:textfield name="areaForm.areaCd" size="30" cssClass="smallTextbox"/>
								</td>
								<td width="15%">
									&nbsp;
								</td>
								<td align="left">
									&nbsp;
								</td>
							</tr>
							<tr>
								<td width="8%">&nbsp;</td>
								<td align="left" class="label" width="15%">
									<s:text name="admin.sysmgmt.area.label.areaName"/>:
								</td>
								<td align="left">
									<s:textfield name="areaForm.areaName" size="30" cssClass="smallTextbox"/>
								</td>
								<td width="15%">
									&nbsp;
								</td>
								<td align="left">
									&nbsp;
								</td>
							</tr>
							<tr>
								<td colspan="5">&nbsp;</td>
							</tr>
							<tr>
	
								<td width="8%">&nbsp;</td>
								<td colspan="4">
									<input class="button" type="button"  value='<s:text name="general.button.search"/>'
										 id="areaSearchButton" onclick="resubmit('areaAction_search.action','areaForm','')" />
									<input class="button" type="reset" value='<s:text name="general.button.clear"/>'
										 id="areaClearButton"/>
									<input class="button" type="button" value='<s:text name="general.button.add"/>'
										 id="areaAddButton" onclick="resubmit('areaAction_inputCreate.action','areaForm','')"/>
									<input class="button" type="reset" value='<s:text name="general.button.back"/>'
										 id="areaBackButton" onclick="javascript:history.go(-1)"/>
								</td>
							</tr>
							
							<tr>
								<td colspan="5">&nbsp;</td>
							</tr>
							<tr>
								<td colspan="5">
									<table class="subTitle">
										<tr>
											<td width="4%" class="subTitle">&nbsp;
											</td>
											<td colspan="4" class="subTitle">
												<s:text name="admin.sysmgmt.area.label.searchResult" />										
											</td>
										</tr>
									</table> 
									
								</td>
							</tr>
							<tr>
								<td colspan="5" >
								<table id="areaList" cellpadding="1" cellspacing="1">
									<tr>
										<td width="2%">&nbsp;</td>
										<td align="left">
											<display:table id="displaylist" name="areaDisplayList" 
												requestURI="/admin/areaAction_search.action"
												style="width:98%" sort="external" pagesize="10" cellpadding="1" cellspacing="1" class="displaytable" partialList="true" size="areaListSize">
												<display:column 
													titleKey="admin.label.sn" 
													style="text-align:center;"													
													headerClass="displayHead">
													${displaylist_rowNum}
												</display:column>
												
												<display:column 
													titleKey="admin.sysmgmt.area.label.areaCode"
													property="areaCd"
													sortable="true"
													style="text-align: center;" 
													headerClass="displayHead" />
													
												<display:column 
													titleKey="admin.sysmgmt.area.label.areaName"
													property="areaName"
													style="text-align: center;" 
													headerClass="displayHead" />
													
												<display:column 
													titleKey="admin.label.operation"
													style="text-align: center;"
	 												headerClass="displayHead" >
	 												<a href="areaAction_inputUpdate.action?areaForm.areaId=${displaylist.areaId }">
										            	 <s:text name="admin.label.update"></s:text>
										            </a> / 
										            <a href="areaAction_del.action?areaForm.areaId=${displaylist.areaId }">
										            	<s:text name="admin.label.del"></s:text>
										            </a>
												</display:column>
											</display:table>
									</td>
									</tr>
								</table>
								</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
							</tr>
							<s:if test="showAdd || showUpdate">
								<s:include value="/com/busibuilding/administrate/area/addOrUpdateArea.jsp"></s:include>
							</s:if>
						</TABLE>
						</td>
						<td width="5%"></td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
	</s:form>
</body>